<template>
  <div class="box">
    <div class="commonHeader header">分布概况</div>
    <div class="content">
      <div class="data-box boxStyle">
        <div class="line-box">
          <i class="t-l-line"></i>
          <i class="l-t-line"></i>
        </div>
        <div class="line-box">
          <i class="t-r-line"></i>
          <i class="r-t-line"></i>
        </div>
        <div class="line-box">
          <i class="b-l-line"></i>
          <i class="l-b-line"></i>
        </div>
        <div class="line-box">
          <i class="b-r-line"></i>
          <i class="r-b-line"></i>
        </div>
        <div class="box-content">
          <div class="title">
            上海市地图
          </div>
          <div class="mapUrl">
            <img :src="mapUrl" alt="">
          </div>
          <div class="Community">
            <div class="left">
            <p class="title">社区分布</p>
            <div v-for="(self,index) in dataList" :key="index">
              <div class="boxCommunity">
                <div>{{self.name}}</div>
                <div class="number">{{self.number}}</div>
              </div>
            </div>
            </div>
            <div class="right">
              <div class="rightcontent">
                <div class="right_box" v-for="(self,index) in infoList" :key="index" :style="{width:(self.width?self.width:'50%')}">
                  <div>{{self.name}}<span class="right_boxPd">{{self.info}}</span></div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div></div>
    </div>
  </div>
</template>
<script>
export default {
  name: "distributionStation",
  data() {
    return {
      infoList:[{
        name:'小区位置',
        info:'上海市静安区平型关路801弄14号',
        width:'100%'
      },
      {
        name:'小区面积',
        info:'9878m²'
      },{
        name:'建筑年代',
        info:'1997年'
      },{
        name:'建筑类型',
        info:'板房'
      },{
        name:'建筑类型',
        info:'二梯八户'
      },{
        name:'楼层楼栋',
        info:`18号/1栋`,
        width:'100%'
      },{
        name:'物业公司',
        info:'进华物业集团'
      },{
        name:'保安/保洁',
        info:'4/1'
      },{
        name:'联系人',
        info:'蒋敏'
      },{
        name:'联系电话',
        info:'18016225687'
      }],
     dataList:[{
       name:'静安区',
       number:1
     },
     {
       name:'黄埔区',
       number:0
     },
     {
       name:'杨浦区',
       number:0
     },
     {
       name:'虹口区',
       number:0
     },
     {
       name:'普陀区',
       number:0
     },
     {
       name:'长宁区',
       number:0
     },
     {
       name:'徐汇区',
       number:0
     },
     {
       name:'闵行区',
       number:0
     },
     {
       name:'金山区',
       number:0
     },
     {
       name:'奉贤区',
       number:0
     },
     {
       name:'松江区',
       number:0
     },
     {
       name:'宝山区',
       number:0
     },
     {
       name:'嘉定区',
       number:0
     },
     {
       name:'青浦区',
       number:0
     },
     {
       name:'浦东',
       number:0
     }, {
       name:'崇明区',
       number:0
     }],
     mapUrl:require('@/assets/ditu.png')
    };
  },
  methods: {
   
  },
  mounted() {
   
  }
};
</script>
<style lang="less" scoped>
.box {
  height: 80%;
  .header {
  }
  .content {
     padding-top: 0.5rem;
    box-sizing: border-box;
    height: calc(100% - 2rem);
    .boxStyle {
      width: 100%;
      height: 100%;
      .box-content {
        padding: 1rem;
        height:100%;
        .mapUrl{
          position: absolute;
          top:-20px;
          left:0;
          width:100%;
          img{
            width:80%;
            margin: auto 10%;
          }
        }
        .Community{
          position: absolute;
          bottom:1rem;
          padding: 0 1rem;
          display: flex;
          align-items: flex-end;
          .left{
            flex:2;
            flex-wrap: wrap;
            display: flex;
            align-items: center;
            .title{
              width:100%;
              font-weight: bold;
              height: rem;
              line-height: 2rem;
            }
            >div{
              width:50%;
              padding: 0.2rem 0;
              .boxCommunity{
                display: flex;
                align-items: center;
                >div{
                  width:50%;
                  &.number{
                    padding-left:1rem;
                    // text-align: center;
                  }
                }
              }
            }
          }
          .right{
            font-size:0.92rem;
            flex:3;
            display: flex;
            
            .rightcontent{
              display: flex;
            flex-wrap: wrap;
            align-self: start;
            border: 1px solid rgba(18,144,255,0.50);
            padding: .3rem 0.5rem;
  width: 100%;
  background: rgba(4,127,198,0.03);
  box-shadow: inset 0 1px 100px 0 rgba(5,128,188,0.20);

              .right_box{
               padding: 0.2rem 0;
                width:50%;
                .right_boxPd{
                  padding-left: 1rem;
                  font-weight: bold;
                }
              }
            }
          }
        }
      }
    }
  }
}
</style>
